//
//  NSObject+Util.h
//  wozhua
//
//  Created by 王洋 on 14/11/27.
//  Copyright (c) 2014年 王洋. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <objc/runtime.h>
#import "NSObject+Network.h"

@interface NSObject (Util)

+ (void)swizzleMethod:(SEL)selectorA toMethod:(SEL)selectorB;

+ (id)performClassMethod:(SEL)aSelector withObject:(id)anArgument;

- (void)performBlock:(void (^)(void))block afterDelay:(NSTimeInterval)delay;

- (void)performBlockInBackground:(void (^)(void))block;

- (void)performBlockOnMainThread:(void (^)(void))block;

//获取当前对象的内存地址
- (NSString *)getSelfMemoryAddress;

@end
